﻿<controls:ChildWindow 
           xmlns:finance="clr-namespace:Marking.Dashboard.Views.Finance"  
           x:Class="Marking.Dashboard.Views.Finance.FinanceWindow"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="650" Height="650" 
           Title="应收明细" KeyDown="ChildWindow_KeyDown">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Grid Grid.Row="0">
            <Grid.RowDefinitions>
                <RowDefinition Height="*"></RowDefinition>
                <RowDefinition Height="*"></RowDefinition>
            </Grid.RowDefinitions>
            <finance:FinancePieChartView Grid.Row="0"
                DataContext="{Binding ReceivableInfos}" />
            <finance:FinancePieChartView Grid.Row="1"
                DataContext="{Binding PayableInfos}" />
        </Grid>
        <Button x:Name="OKButton" Content="关闭" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Center" Grid.Row="1" />
    </Grid>
</controls:ChildWindow>